﻿using System;
using System.Collections.Generic;
using System.Web.Script.Serialization;
using NUnit.Framework;
using Omu.Awesome.Mvc;

namespace Omu.AwesomeDemo.Tests
{
    public class SimpleTest
    {
        public class Alum
        {
            private string Dojo;

            public void Saa()
            {
                var props = this.GetType().GetProperty("Dojo");
                props.SetValue(this,"aaa",null);
            }
        }

        [Test]
        public void Do()
        {
            var props = typeof (Settings.Lookup).GetFields();
            Console.WriteLine(props[0].GetValue(null));
        }

        [Test]
        public void Aaa()
        {
            var ss = new JavaScriptSerializer();
            var o = (IDictionary<string, object>) ss.DeserializeObject("{Prop1:'abc'}");
            Console.WriteLine(o["Prop1"]);
        }

    }
}